package com.aizuda.boot.modules.business.contract.service;

import com.aizuda.boot.modules.business.contract.dto.SingleResponse;
import com.aizuda.boot.modules.business.contract.entity.ContractWorkflowFormFieldEntity;
import com.aizuda.boot.modules.business.contract.entity.vo.FieldTreeDTO;
import com.aizuda.boot.modules.business.contract.mapper.ContractWorkflowModuleMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.annotation.Resource;

import java.util.List;

/**
 * 合同流程与表单字段关联Service接口
 *
 * @Author sangyirong
 * @Version 1.0
 * @Date 2025/5/20 13:36
 */
public interface ContractWorkflowFormFieldService extends IService<ContractWorkflowFormFieldEntity> {

    /**
     * 获取所有启用模块的字段树
     *
     * @param workflowId
     * @return
     */
    SingleResponse<List<FieldTreeDTO>> getFieldTree(Long workflowId);
}